package com.bdqn.mapper;

import com.bdqn.pojo.Role;
import com.bdqn.pojo.Supplier;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RoleMapper {
    /**
     * 添加用户
     */
    public int add(Role role);

    /**
     * 根据角色名称模糊查询
     *
     * @param roleName
     * @return
     */
    List<Supplier> selectRoleList(@Param("roleName") String roleName);

    /**
     * 根据供货商ID删除
     *
     * @return
     */
    public int delRoleId(@Param("id") Integer id);

    /**
     * 修改
     *
     * @param role
     * @return
     */
    public int updateRole(Role role);
}
